﻿package com.scn.base.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scn.base.dao.impl.DAOManager;
import com.scn.base.domain.UserVO;
import com.scn.base.page.PageVO;
import com.scn.base.service.ISysUserService;
@Service
public class SysUserServiceImpl implements ISysUserService {
	@Autowired
	private DAOManager daoManager;
	public UserVO selectUserByNo(String userno) {
		return daoManager.getSysUserDao().selectUserByNo(userno);
	}
	public List<UserVO> selectUserListByRole(Integer userrole) {
		return daoManager.getSysUserDao().selectUserListByRole(userrole);
	}
	public void updateUserStatus(UserVO user) {
		daoManager.getSysUserDao().updateUserStatus(user);
	}
	public int selectUserListCount() {
		return daoManager.getSysUserDao().selectUserListCount();
	}
	public List<UserVO> selectUserList(PageVO page) {
		return daoManager.getSysUserDao().selectUserList(page);
	}
	public void deleteUserById(int userid) {
		daoManager.getSysUserDao().deleteUserById(userid);
	}
	public UserVO selectUserById(int userid) {
		return daoManager.getSysUserDao().selectUserById(userid);
	}
	public void updateUser(Map userMap) {
		 daoManager.getSysUserDao().updateUser(userMap);
	}
	public long selectUserSeq() {
		return  daoManager.getSysUserDao().selectUserSeq();
	}
	public void insertUser(UserVO userVo) {
		daoManager.getSysUserDao().insertUser(userVo);
	}
	public void initPwd(Map initPwdMap) {
		daoManager.getSysUserDao().initPwd(initPwdMap);
	}
	public void updatePwd(Map pwdMap) {
		daoManager.getSysUserDao().updatePwd(pwdMap);
	}
	
	
}
